package com.ogawa.projectcommon.bean;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "collect")
public class CollectBean {
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "id")
    private int id;
    //对应modelValue
    @ColumnInfo(name = "programId")
    private int programId;
    //对应functionCode
    @ColumnInfo(name = "program")
    private String program;
    //对应functionName
    @ColumnInfo(name = "programName")
    private String programName;
    //设备型号
    @ColumnInfo(name = "typeCode")
    private String typeCode;
    @ColumnInfo(name = "index")
    private int index;
    @ColumnInfo(name = "type")
    private int type;
    @Ignore
    private long createTime;
    @Ignore
    private int maxCollection = 3;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProgramId() {
        return programId;
    }

    public void setProgramId(int programId) {
        this.programId = programId;
    }

    public String getProgram() {
        return program;
    }

    public void setProgram(String program) {
        this.program = program;
    }

    public String getProgramName() {
        return programName;
    }

    public void setProgramName(String programName) {
        this.programName = programName;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getMaxCollection() {
        return maxCollection;
    }

    public void setMaxCollection(int maxCollection) {
        this.maxCollection = maxCollection;
    }
}
